sudo apt-get install software-properties-common
sudo apt-get install debian-keyring debian-archive-keyring
sudo nano /etc/apt/sources.list.d/debian-jessie-backports.list
deb http://ftp.ch.debian.org/debian/ jessie-backports main
sudo apt-get update
sudo apt-get -t jessie-backports install openjdk-8-jdk
sudo apt-get remove openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless --purge
Download Eclipse package from https://www.eclipse.org/downloads/eclipse-packages/ Extract it to your home
sudo apt-get remove xorg --purge
sudo apt install xorg
sudo reboot
cd eclipse-installer
./eclipse-inst